#!/bin/env python
# -*- coding:utf-8
"""
@author:xingz
@file:test.py
@time:2021/11/17
"""
from __future__ import annotations
import os, sys

# sys.path.append("D:\\PycharmProjects\\algorithm\\tictactoe\\.")
from tictactoe.Tictactoe import TTTBoard
from minmax import find_best_move

b = TTTBoard()
for i in range(9):
    if b.is_win or b.is_draw:
        print("END")
        print(b)
    b_move = find_best_move(b)
    b = b.move(b_move)
    print(b)
